package oop4.driver;

public class FighterPlane extends Airplane {
    int ammo;   //载弹量，单位为吨
    public FighterPlane(String brand,  int heightMax, int weight, int ammo) {
        super(brand, heightMax, weight);
        this.ammo = ammo;
    }

    public void shootMissiles() {    //发射导弹
        System.out.println(brand + "战斗机发射了导弹");
    }

    public void lowHover() {     //低空盘旋
        System.out.println(brand + "战斗机在低空盘旋");
    }

    @Override
    public void show() {
        System.out.println("这是一架战斗机，载弹量:"+ammo+"吨");
        super.show();
    }
}
